<template>
  <div class="softArticlePromotion">
    <commonBanner
      bgUrl="https://oss-imag.aiseoword.com/aiseo-image/img-tab04-bannerIMG.webp"
      :listArr="['精准营销', '智能高效', '全网投放']"
      listColor="#1A1A1A"
      chatInfo="您好, 我想了解更多关于软文推广的内容"
      buttonText="服务咨询"
      backgroundPosition="center"
    >
      <img
        class="softArticlePromotion-img"
        src="@/assets/image/mobile/softArticlePromotion/title.png"
        alt="软文推广"
      />
    </commonBanner>
    <!-- 内容撰写难题 -->
    <div class="content-write-dificult">
      <img
        class="title-image"
        src="@/assets/image/softArticlePromotion/img／tab04／title／obstacle@2x.png"
      />
      <div class="title-contente">
        在资讯爆炸的时代里，软文成为企业网推的首选方式。如何在众多营销软文中脱颖而出，精准进入目标客群视野？如何以最高费效比完成营销目标？如何通过软文营销助力品牌形象塑造？对于企业而言，软文虽好，但用得好并不容易。
      </div>
      <div class="dificult-list-outer scrollbar-class">
        <div class="dificult-list">
          <div class="dificult-item">
            <img
              class="dificult-image"
              src="@/assets/image/softArticlePromotion/img／tab04／text_card／efficiency@2x.png"
            />
            <div class="dificult-title">发布效率低下,信息披露不及时</div>
            <div class="dificult-content">
              传统软文发布效率低下，因为投放审核原因，部分稿件发布无法做到当天时效，甚至一些营销类稿件，常常遭遇朝发夕撤。
            </div>
          </div>
          <div class="dificult-item">
            <img
              class="dificult-image"
              src="@/assets/image/softArticlePromotion/img／tab04／text_card／expensive@2x.png"
            />
            <div class="dificult-title">传统方式成本昂贵</div>
            <div class="dificult-content">
              传统软文按字数付费，单篇成本高，且要求限制较多，无法满足企业营销内容需求，质量难以保障。
            </div>
          </div>
          <div class="dificult-item">
            <img
              class="dificult-image"
              src="@/assets/image/softArticlePromotion/img／tab04／text_card／method@2x.png"
            />
            <div class="dificult-title">投放需求难匹配</div>
            <div class="dificult-content">
              软文投放的核心在于内容与受众的精准匹配。然而，在实际操作中，往往因为目标受众的画像不够清晰，或者对受众的需求和兴趣点把握不够准确，导致软文内容难以引起受众的共鸣和兴趣，进而降低了投放效果。
            </div>
          </div>
          <div class="dificult-item">
            <img
              class="dificult-image"
              src="@/assets/image/softArticlePromotion/img／tab04／text_card／unfamiliar@2x.png"
            />
            <div class="dificult-title">媒体不熟悉,试错成本高</div>
            <div class="dificult-content">
              当媒体环境不熟悉时，企业在进行软文投放时往往面临较高的试错成本。这是因为在不了解媒体平台的受众特点、传播效果以及合作方式的情况下，企业往往以广撒网的形式进行推广，极易造成资源错配和资源浪费。
            </div>
          </div>
          <div class="dificult-item">
            <img
              class="dificult-image"
              src="@/assets/image/softArticlePromotion/img／tab04／text_card／exposure@2x.png"
            />
            <div class="dificult-title">品牌检索 能见度低</div>
            <div class="dificult-content">
              文稿质量、平台选择都将影响到营销效果。低质或不符合SEO规则的软文推广，往往无法达到企业主的推广需求，无法触达到目标客群，导致高成本批量宣发软文，但实际搜索能见量低，客户触达率低。
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 更简单 -->
    <div class="more-simple" v-if="currentpage > pageShowNode.simple">
      <img
        class="title-image"
        src="@/assets/image/mobile/softArticlePromotion/simple-title.png"
      />
      <div class="title-contente">
        我们拥有丰富的媒体资源和专业的软文策划团队，同时还有专业SEO团队辅助投放效果，精准把握目标受众的需求和兴趣点，为您量身定制高质量、有吸引力的软文内容，优秀的投放策略让您的品牌信息快速传播，轻松吸引目标受众的关注和认可。
      </div>
    </div>
    <!-- pc轮播对应 -->
    <swipperlist
      :carouselList="carouselList"
      v-if="currentpage > pageShowNode.simple"
    ></swipperlist>
    <endButton v-if="currentpage > pageShowNode.simple"></endButton>
    <div class="loading-box" v-show="loadingPage">...加载中</div>
  </div>
</template>

<script setup>
import commonBanner from "@/components/mobileComponent/commonBanner.vue";
import { ref, reactive, onMounted, onUnmounted, onBeforeUnmount } from "vue";
import EventBus from "@/utils/eventBus.js";
import titleImg1 from "@/assets/image/mobile/softArticlePromotion/banner-title1.png";
import titleImg2 from "@/assets/image/mobile/softArticlePromotion/banner-title2.png";
import titleImg3 from "@/assets/image/mobile/softArticlePromotion/banner-title3.png";
import titleImg4 from "@/assets/image/mobile/softArticlePromotion/banner-title4.png";
import titleImg5 from "@/assets/image/mobile/softArticlePromotion/banner-title5.png";

import img1 from "@/assets/image/mobile/softArticlePromotion/banner1.png";
import img2 from "@/assets/image/mobile/softArticlePromotion/banner2.png";
import img3 from "@/assets/image/mobile/softArticlePromotion/banner3.png";
import img4 from "@/assets/image/mobile/softArticlePromotion/banner4.png";
import img5 from "@/assets/image/mobile/softArticlePromotion/banner5.png";
import swipperlist from "./swipperlist.vue";
import endButton from "./endButton.vue";

// 分段加载页面
const currentpage = ref(1);
const loadingPage = ref(false);
const pageShowNode = reactive({
  simple: 1,
});
const handleScrollToBottom = () => {
  if (currentpage.value < 2) {
    loadingPage.value = true;
    setTimeout(() => {
      currentpage.value++;
      loadingPage.value = false;
    }, 1000);
  }
};
// 判断是否存在滚动条，
const initScroll = () => {
  const appDiv = document.getElementById("app");
  if (appDiv.scrollHeight > appDiv.clientHeight) {
    return;
  } else {
    currentpage.value++;
    nextTick(() => {
      initScroll();
    });
  }
};
const carouselList = ref([
  {
    img: img1,
    titleImg: titleImg1,
    title: "软文发布快速",
    disc: "合作媒体在线收稿，通过微信公众号实时提醒，确保稿件极速投放",
  },
  {
    img: img2,
    titleImg: titleImg2,
    title: "效果实时保障",
    disc: "软文依据发布大数据，推荐媒体综合收录率90%以上",
  },
  {
    img: img3,
    titleImg: titleImg3,
    title: "专业高效服务",
    disc: "100+传播顾问服务超30W+企业，不同行业投放策略",
  },
  {
    img: img4,
    titleImg: titleImg4,
    title: "实时监测",
    disc: "实时监测让您清晰了解SEO优化排名效果及费用支出情况，用户可随时查看关键词排名的实时数据，方便快捷。",
  },
  {
    img: img5,
    titleImg: titleImg5,
    title: "效果覆盖广阔",
    disc: "采用新闻传播模式进行推广可以产生频繁的新闻曝光率。另外，大量地域媒体，可以根据您的地域需求，发布辐射到各行业的精准媒体上！",
  },
]);
onMounted(() => {
  initScroll();
  EventBus.on("scrollToBottom", handleScrollToBottom);
});
onBeforeUnmount(() => {
  EventBus.off("scrollToBottom");
});
</script>

<style lang="scss" scoped>
.softArticlePromotion {
  width: 100%;
  background: #f5f5f5;
  .loading-box {
    text-align: center;
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: bold;
    font-size: 10px;
    color: #808080;
    line-height: 24px;
    letter-spacing: 1px;
  }
  .title-contente {
    margin-top: 16px;
    font-family: Microsoft YaHei UI, Microsoft YaHei UI;
    font-weight: 400;
    font-size: 14px;
    color: #808080;
    line-height: 20px;
    padding: 0 40px;
    box-sizing: border-box;
    text-align: center;
  }
  .softArticlePromotion-img{
    height: 64px;
  }
  .content-write-dificult {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    .title-image {
      width: 148px;
      height: 50px;
      margin: 0 auto;
    }
    .dificult-list-outer {
      width: 100%;
      margin-top: 32px;
      padding: 16px;
      box-sizing: border-box;
      overflow: overlay;
      .dificult-list {
        display: grid;
        grid-template-rows: repeat(1, 240px);
        grid-template-columns: repeat(6, 307px);
        .dificult-item {
          background: #ffffff;
          border-radius: 12px;
          padding: 32px 12px 0 12px;
          box-sizing: border-box;
          & + .dificult-item {
            margin-left: 12px;
          }
          .dificult-image {
            height: 18px;
          }
          .dificult-title {
            font-family: Microsoft YaHei UI, Microsoft YaHei UI;
            font-weight: bold;
            font-size: 16px;
            color: #1a1a1a;
            line-height: 16px;
            margin-top: 8px;
          }
          .dificult-content {
            font-family: Microsoft YaHei UI, Microsoft YaHei UI;
            font-weight: 400;
            font-size: 14px;
            color: #808080;
            line-height: 20px;
            margin-top: 16px;
          }
        }
      }
    }
  }
  .more-simple {
    margin: 30px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    .title-image {
      width: 268px;
    }
  }
}
</style>
